package cn.akwangl.concurrency.web.model.user.service.impl;

import cn.akwangl.concurrency.web.event.EventFactory;
import cn.akwangl.concurrency.web.event.PublishEvent;
import cn.akwangl.concurrency.web.model.user.mapper.UsersMapper;
import cn.akwangl.concurrency.web.model.user.pojo.UsersEntity;
import cn.akwangl.concurrency.web.model.user.service.UsersService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户表  服务实现类
 * </p>
 *
 * @author 阿坤同学
 * @since 2022-11-22 14:30:15
 */
@Service
@RequiredArgsConstructor
public class UsersServiceImpl extends ServiceImpl<UsersMapper, UsersEntity> implements UsersService {

    private final PublishEvent publishEvent;

    @Override
    public void register() {
        publishEvent.publishEvent(EventFactory.createSourceEvent(this));
    }
}
